package com.jinsi.service.yrf.iml;
import com.jinsi.constant.YrfConstant;
import com.jinsi.mapper.yrf.KeywordSearchMapper;
import com.jinsi.pojo.SyKeywordSearch;
import com.jinsi.service.yrf.KeywordSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 86185
 */
@Service
@Transactional
public class KeywordSearchServiceImpl implements KeywordSearchService {

    @Autowired
    private KeywordSearchMapper keywordSearchMapper;
    @Override
    public List<SyKeywordSearch> getCommTab() {
        return keywordSearchMapper.getCommTab(YrfConstant.COMM_CURR_CATEGORY_ONE);
    }

    @Override
    public List<SyKeywordSearch> getCurrTab() {
        return keywordSearchMapper.getCurrTab(YrfConstant.COMM_CURR_CATEGORY_TWO);
    }

}
